<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: string.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('da/d66/string_8h_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">string.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> Name        : string.h</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> Author      : uCXpresso</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> Version     : v1.0.5</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> Date        : 2013/5/21</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> Copyright   : Copyright (C) www.embeda.com.tw</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> Description : </span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">                                 History</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> ---------+---------+--------------------------------------------+--------------</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> DATE     | VERSION |   DESCRIPTIONS                             |  By</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> ---------+---------+--------------------------------------------+--------------</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> 2012/2/1   v1.0.0  First Edition                                   Jason</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> 2012/8/15  v1.0.1  Add two operators                               Jason</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">                        += (TCHAR)</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">                        += (LPCTSTR)</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> 2012/8/30  v1.0.2  Add lock flag in getBuffer                      Jason</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">                         to keep string memory, don&#39;t auto destroy.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> 2012/9/19  v1.0.3  Add 3 operators                                 Jason</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">                        += (int)</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">                        += (double)</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">                        += (uint32_t)</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> 2013/4/5   v1.0.4  Rename member function params to field          Jason</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">                    Rename member function paramsInt to fieldInt</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">                    Rename member function paramsFloat to fieldFloat</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">                    Add copy string with length</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> 2013/5/21  v1.0.5  Fixed bugs:                                     Jason</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">                     makeUpper()</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">                     makeLower()</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">                     copy()</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">  ===============================================================================</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#ifndef STRING_HPP_</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define STRING_HPP_</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;class/smallprintf.h&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#define DEF_STRBUF_SIZE 32</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../df/d99/class_c_string.html">   46</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../df/d99/class_c_string.html">CString</a>: <span class="keyword">public</span> <a class="code" href="../../de/db4/class_c_small_printf.html">CSmallPrintf</a> {</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <a class="code" href="../../df/d99/class_c_string.html#a3cb66b8f688676f29cdb51c914a15cf7">CString</a>(<span class="keywordtype">int</span> size=DEF_STRBUF_SIZE);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="../../df/d99/class_c_string.html#a3cb66b8f688676f29cdb51c914a15cf7">CString</a>(<span class="keyword">const</span> <a class="code" href="../../df/d99/class_c_string.html">CString</a> &amp;str);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="../../df/d99/class_c_string.html#a3cb66b8f688676f29cdb51c914a15cf7">CString</a>(LPCTSTR str, <span class="keywordtype">int</span> <a class="code" href="../../df/d99/class_c_string.html#a8f131c0e097bea62d809acbc995807b9">length</a>=0);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <a class="code" href="../../df/d99/class_c_string.html#a3cb66b8f688676f29cdb51c914a15cf7">CString</a>(LPTSTR buf);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/d99/class_c_string.html#a65b70fc602655e47340e5d8ae53167f3">~CString</a>();</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>     <a class="code" href="../../df/d99/class_c_string.html#a1cc58a690ea6c9b8c4d7a9118fe3cc18">getBufSize</a>();</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">virtual</span> LPTSTR  <a class="code" href="../../df/d99/class_c_string.html#ac7b886c37095673cc287d24100a9f3fd">getBuffer</a>(<span class="keywordtype">bool</span> lock=<span class="keyword">false</span>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>     <a class="code" href="../../df/d99/class_c_string.html#a5f5361665c7568d502d058992b14c016">chkLength</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>    <a class="code" href="../../df/d99/class_c_string.html#a9cb7e6111fd46dd4d16a111ffe4af39d">freeExtra</a>();</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>     <a class="code" href="../../df/d99/class_c_string.html#a8f131c0e097bea62d809acbc995807b9">length</a>();</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>    <a class="code" href="../../df/d99/class_c_string.html#a86bdac885b2d28689a62cbb6ae8b9ee4">clear</a>();</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">virtual</span> TCHAR   <a class="code" href="../../df/d99/class_c_string.html#ae1bcd2dd9d59762b41fe898916bfdd23">getAt</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>    <a class="code" href="../../df/d99/class_c_string.html#a99eaccef0daa453bf36ec886ae9b42c4">setAt</a>(<span class="keywordtype">int</span> index, TCHAR ch);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>     <a class="code" href="../../df/d99/class_c_string.html#a181b18bf81568cee519617106706963f">copy</a>(<a class="code" href="../../df/d99/class_c_string.html">CString</a> &amp;str);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>     <a class="code" href="../../df/d99/class_c_string.html#a181b18bf81568cee519617106706963f">copy</a>(LPCTSTR str, <span class="keywordtype">int</span> length);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/d99/class_c_string.html">CString</a> <a class="code" href="../../df/d99/class_c_string.html#aeebb301ee8968688fd6ea8029a95ce9c">clone</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keyword">virtual</span> LPCTSTR <a class="code" href="../../df/d99/class_c_string.html#a7a027f50c1bede9a37d12ec9d2cc6616">makeUpper</a>();</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">virtual</span> LPCTSTR <a class="code" href="../../df/d99/class_c_string.html#af4236022a2befbcee7c1eaad21ba6798">makeLower</a>();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">virtual</span> LPCTSTR <a class="code" href="../../df/d99/class_c_string.html#a0b2512a4d0efb8c0317ef7a969268f07">makeReverse</a>();</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/d99/class_c_string.html">CString</a> <a class="code" href="../../df/d99/class_c_string.html#aae1e4a3db1f724363a300d706eae78b8">mid</a>(<span class="keywordtype">int</span> first, <span class="keywordtype">int</span> count);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../df/d99/class_c_string.html#a34ca981fe4599b24ed4312ee95a7f008">find</a>(LPCTSTR str, <span class="keywordtype">int</span> start=0);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../df/d99/class_c_string.html#a34ca981fe4599b24ed4312ee95a7f008">find</a>(TCHAR ch, <span class="keywordtype">int</span> start=0);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../df/d99/class_c_string.html#a0d1d84239f8a01f8dd4e012fddc63cbe">findIC</a>(LPCTSTR str, <span class="keywordtype">int</span> start=0);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../df/d99/class_c_string.html#a2330b9d10792cbf3dec9ccd747c67da1">replace</a>(LPCTSTR oldstr, LPCTSTR newstr);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../df/d99/class_c_string.html#aade923167835efe164b5e06fb192e176">uriDecode</a>(LPCTSTR uri);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">//  virtual CString field(int index, TCHAR separate=0x20);</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">//  virtual int     fieldInt(int index, TCHAR separate=0x20);</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">//  virtual float   fieldFloat(int index, TCHAR separate=0x20);</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keyword">virtual</span> TCHAR   <a class="code" href="../../df/d99/class_c_string.html#a198badb5e4ffe29258ae2476836e274a">operator []</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>    <a class="code" href="../../df/d99/class_c_string.html#a68736847dab1a820326697c0321bce63">operator = </a>(<a class="code" href="../../df/d99/class_c_string.html">CString</a> &amp;str);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>    <a class="code" href="../../df/d99/class_c_string.html#a68736847dab1a820326697c0321bce63">operator = </a>(LPCTSTR str);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/d99/class_c_string.html">CString</a>&amp; <a class="code" href="../../df/d99/class_c_string.html#ae4536c8c8913afaebdc72f79bbe02d9d">operator + </a>(<a class="code" href="../../df/d99/class_c_string.html">CString</a> &amp;str);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/d99/class_c_string.html">CString</a>&amp; <a class="code" href="../../df/d99/class_c_string.html#ae4536c8c8913afaebdc72f79bbe02d9d">operator + </a>(TCHAR ch);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/d99/class_c_string.html">CString</a>&amp; <a class="code" href="../../df/d99/class_c_string.html#ae4536c8c8913afaebdc72f79bbe02d9d">operator + </a>(LPCTSTR str);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d99/class_c_string.html#a40bc4b86a267617199efa1bd1b4054eb">operator += </a>(<a class="code" href="../../df/d99/class_c_string.html">CString</a> &amp;str);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d99/class_c_string.html#a40bc4b86a267617199efa1bd1b4054eb">operator += </a>(TCHAR ch);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d99/class_c_string.html#a40bc4b86a267617199efa1bd1b4054eb">operator += </a>(LPCTSTR str);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="../../df/d99/class_c_string.html#ad0593358c21cca96aca2403be6d6ec92">   95</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d99/class_c_string.html#a40bc4b86a267617199efa1bd1b4054eb">operator += </a>(<span class="keywordtype">int</span> val) {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>(val);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    }</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../df/d99/class_c_string.html#abee606394e7b160c90aaa492febecdee">   98</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d99/class_c_string.html#a40bc4b86a267617199efa1bd1b4054eb">operator += </a>(<span class="keywordtype">double</span> val) {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>(val);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="../../df/d99/class_c_string.html#a33449318e0ed01e0307993e1f173747f">  101</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d99/class_c_string.html#a40bc4b86a267617199efa1bd1b4054eb">operator +=  </a>(uint32_t val) {</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <a class="code" href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">putv</a>((<span class="keywordtype">unsigned</span>)val);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span>     <a class="code" href="../../df/d99/class_c_string.html#a960b7b752e43ec86a0851e30fa9f5f16">operator == </a>(<a class="code" href="../../df/d99/class_c_string.html">CString</a> &amp;str);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span>     <a class="code" href="../../df/d99/class_c_string.html#a960b7b752e43ec86a0851e30fa9f5f16">operator == </a>(LPCTSTR str);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../df/d99/class_c_string.html#aab798ff84e78c0bce521dad477bcdfa6">  108</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> LPCTSTR <a class="code" href="../../df/d99/class_c_string.html#aab798ff84e78c0bce521dad477bcdfa6">operator *</a>() {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="../../df/d99/class_c_string.html#ac7b886c37095673cc287d24100a9f3fd">getBuffer</a>();</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    }</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="../../df/d99/class_c_string.html#a9149db10490c1d9c4c969043877f3cdb">  111</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keyword">operator</span> LPCTSTR () {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../df/d99/class_c_string.html#ac7b886c37095673cc287d24100a9f3fd">getBuffer</a>();</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    }</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    LPTSTR  m_buffer;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordtype">int</span>     m_length;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">int</span>     m_size;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="comment">// virtual functions for class smallprintf</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> alloc(<span class="keywordtype">int</span> bufsize=DEF_STRBUF_SIZE);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> realloc(<span class="keywordtype">int</span> chkStrLen);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> free();</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> putc(<span class="keywordtype">int</span> ch);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> getc(){<span class="keywordflow">return</span> 0;}</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keyword">inline</span> <span class="keyword">virtual</span> LPCTSTR gets() {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="keywordflow">return</span> (LPCTSTR) <a class="code" href="../../df/d99/class_c_string.html#ac7b886c37095673cc287d24100a9f3fd">getBuffer</a>();</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    }</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordtype">void</span> moveL(<span class="keywordtype">int</span> first, <span class="keywordtype">int</span> count);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordtype">void</span> moveR(<span class="keywordtype">int</span> first, <span class="keywordtype">int</span> count);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;};</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* STRING_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_c_string_html_a5f5361665c7568d502d058992b14c016"><div class="ttname"><a href="../../df/d99/class_c_string.html#a5f5361665c7568d502d058992b14c016">CString::chkLength</a></div><div class="ttdeci">virtual int chkLength()</div></div>
<div class="ttc" id="class_c_string_html_a2330b9d10792cbf3dec9ccd747c67da1"><div class="ttname"><a href="../../df/d99/class_c_string.html#a2330b9d10792cbf3dec9ccd747c67da1">CString::replace</a></div><div class="ttdeci">virtual int replace(LPCTSTR oldstr, LPCTSTR newstr)</div></div>
<div class="ttc" id="class_c_string_html_aab798ff84e78c0bce521dad477bcdfa6"><div class="ttname"><a href="../../df/d99/class_c_string.html#aab798ff84e78c0bce521dad477bcdfa6">CString::operator*</a></div><div class="ttdeci">virtual LPCTSTR operator*()</div><div class="ttdef"><b>Definition:</b> string.h:108</div></div>
<div class="ttc" id="class_c_string_html_a1cc58a690ea6c9b8c4d7a9118fe3cc18"><div class="ttname"><a href="../../df/d99/class_c_string.html#a1cc58a690ea6c9b8c4d7a9118fe3cc18">CString::getBufSize</a></div><div class="ttdeci">virtual int getBufSize()</div></div>
<div class="ttc" id="class_c_string_html_ac7b886c37095673cc287d24100a9f3fd"><div class="ttname"><a href="../../df/d99/class_c_string.html#ac7b886c37095673cc287d24100a9f3fd">CString::getBuffer</a></div><div class="ttdeci">virtual LPTSTR getBuffer(bool lock=false)</div></div>
<div class="ttc" id="class_c_string_html_a65b70fc602655e47340e5d8ae53167f3"><div class="ttname"><a href="../../df/d99/class_c_string.html#a65b70fc602655e47340e5d8ae53167f3">CString::~CString</a></div><div class="ttdeci">virtual ~CString()</div></div>
<div class="ttc" id="class_c_string_html_a3cb66b8f688676f29cdb51c914a15cf7"><div class="ttname"><a href="../../df/d99/class_c_string.html#a3cb66b8f688676f29cdb51c914a15cf7">CString::CString</a></div><div class="ttdeci">CString(int size=DEF_STRBUF_SIZE)</div></div>
<div class="ttc" id="class_c_string_html_a181b18bf81568cee519617106706963f"><div class="ttname"><a href="../../df/d99/class_c_string.html#a181b18bf81568cee519617106706963f">CString::copy</a></div><div class="ttdeci">virtual int copy(CString &amp;str)</div></div>
<div class="ttc" id="class_c_string_html_a0d1d84239f8a01f8dd4e012fddc63cbe"><div class="ttname"><a href="../../df/d99/class_c_string.html#a0d1d84239f8a01f8dd4e012fddc63cbe">CString::findIC</a></div><div class="ttdeci">virtual int findIC(LPCTSTR str, int start=0)</div></div>
<div class="ttc" id="class_c_string_html_a9cb7e6111fd46dd4d16a111ffe4af39d"><div class="ttname"><a href="../../df/d99/class_c_string.html#a9cb7e6111fd46dd4d16a111ffe4af39d">CString::freeExtra</a></div><div class="ttdeci">virtual void freeExtra()</div></div>
<div class="ttc" id="class_c_string_html_a34ca981fe4599b24ed4312ee95a7f008"><div class="ttname"><a href="../../df/d99/class_c_string.html#a34ca981fe4599b24ed4312ee95a7f008">CString::find</a></div><div class="ttdeci">virtual int find(LPCTSTR str, int start=0)</div></div>
<div class="ttc" id="class_c_small_printf_html_a158dc1f45a1f19c8edd63e22544c30cc"><div class="ttname"><a href="../../de/db4/class_c_small_printf.html#a158dc1f45a1f19c8edd63e22544c30cc">CSmallPrintf::putv</a></div><div class="ttdeci">int putv(int val)</div></div>
<div class="ttc" id="class_c_string_html_af4236022a2befbcee7c1eaad21ba6798"><div class="ttname"><a href="../../df/d99/class_c_string.html#af4236022a2befbcee7c1eaad21ba6798">CString::makeLower</a></div><div class="ttdeci">virtual LPCTSTR makeLower()</div></div>
<div class="ttc" id="class_c_string_html_a960b7b752e43ec86a0851e30fa9f5f16"><div class="ttname"><a href="../../df/d99/class_c_string.html#a960b7b752e43ec86a0851e30fa9f5f16">CString::operator==</a></div><div class="ttdeci">virtual bool operator==(CString &amp;str)</div></div>
<div class="ttc" id="class_c_string_html_a7a027f50c1bede9a37d12ec9d2cc6616"><div class="ttname"><a href="../../df/d99/class_c_string.html#a7a027f50c1bede9a37d12ec9d2cc6616">CString::makeUpper</a></div><div class="ttdeci">virtual LPCTSTR makeUpper()</div></div>
<div class="ttc" id="class_c_string_html_a68736847dab1a820326697c0321bce63"><div class="ttname"><a href="../../df/d99/class_c_string.html#a68736847dab1a820326697c0321bce63">CString::operator=</a></div><div class="ttdeci">virtual void operator=(CString &amp;str)</div></div>
<div class="ttc" id="class_c_string_html_a40bc4b86a267617199efa1bd1b4054eb"><div class="ttname"><a href="../../df/d99/class_c_string.html#a40bc4b86a267617199efa1bd1b4054eb">CString::operator+=</a></div><div class="ttdeci">virtual void operator+=(CString &amp;str)</div></div>
<div class="ttc" id="class_c_string_html_aae1e4a3db1f724363a300d706eae78b8"><div class="ttname"><a href="../../df/d99/class_c_string.html#aae1e4a3db1f724363a300d706eae78b8">CString::mid</a></div><div class="ttdeci">virtual CString mid(int first, int count)</div></div>
<div class="ttc" id="class_c_string_html_a8f131c0e097bea62d809acbc995807b9"><div class="ttname"><a href="../../df/d99/class_c_string.html#a8f131c0e097bea62d809acbc995807b9">CString::length</a></div><div class="ttdeci">virtual int length()</div></div>
<div class="ttc" id="class_c_string_html_aeebb301ee8968688fd6ea8029a95ce9c"><div class="ttname"><a href="../../df/d99/class_c_string.html#aeebb301ee8968688fd6ea8029a95ce9c">CString::clone</a></div><div class="ttdeci">virtual CString clone()</div></div>
<div class="ttc" id="class_c_string_html_a86bdac885b2d28689a62cbb6ae8b9ee4"><div class="ttname"><a href="../../df/d99/class_c_string.html#a86bdac885b2d28689a62cbb6ae8b9ee4">CString::clear</a></div><div class="ttdeci">virtual void clear()</div></div>
<div class="ttc" id="class_c_string_html_ae1bcd2dd9d59762b41fe898916bfdd23"><div class="ttname"><a href="../../df/d99/class_c_string.html#ae1bcd2dd9d59762b41fe898916bfdd23">CString::getAt</a></div><div class="ttdeci">virtual TCHAR getAt(int index)</div></div>
<div class="ttc" id="class_c_string_html"><div class="ttname"><a href="../../df/d99/class_c_string.html">CString</a></div><div class="ttdoc">a string class inherit from CSmallPrintf. </div><div class="ttdef"><b>Definition:</b> string.h:46</div></div>
<div class="ttc" id="class_c_string_html_aade923167835efe164b5e06fb192e176"><div class="ttname"><a href="../../df/d99/class_c_string.html#aade923167835efe164b5e06fb192e176">CString::uriDecode</a></div><div class="ttdeci">virtual int uriDecode(LPCTSTR uri)</div></div>
<div class="ttc" id="class_c_small_printf_html"><div class="ttname"><a href="../../de/db4/class_c_small_printf.html">CSmallPrintf</a></div><div class="ttdef"><b>Definition:</b> smallprintf.h:19</div></div>
<div class="ttc" id="class_c_string_html_a198badb5e4ffe29258ae2476836e274a"><div class="ttname"><a href="../../df/d99/class_c_string.html#a198badb5e4ffe29258ae2476836e274a">CString::operator[]</a></div><div class="ttdeci">virtual TCHAR operator[](int index)</div></div>
<div class="ttc" id="class_c_string_html_a99eaccef0daa453bf36ec886ae9b42c4"><div class="ttname"><a href="../../df/d99/class_c_string.html#a99eaccef0daa453bf36ec886ae9b42c4">CString::setAt</a></div><div class="ttdeci">virtual void setAt(int index, TCHAR ch)</div></div>
<div class="ttc" id="class_c_string_html_ae4536c8c8913afaebdc72f79bbe02d9d"><div class="ttname"><a href="../../df/d99/class_c_string.html#ae4536c8c8913afaebdc72f79bbe02d9d">CString::operator+</a></div><div class="ttdeci">virtual CString &amp; operator+(CString &amp;str)</div></div>
<div class="ttc" id="class_c_string_html_a0b2512a4d0efb8c0317ef7a969268f07"><div class="ttname"><a href="../../df/d99/class_c_string.html#a0b2512a4d0efb8c0317ef7a969268f07">CString::makeReverse</a></div><div class="ttdeci">virtual LPCTSTR makeReverse()</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d9ab3e09413249e340719d1c246acc66.html">Jason Project</a></li><li class="navelem"><a class="el" href="../../dir_e60b0d0338763df7a227cbecf5ac6106.html">Firmware</a></li><li class="navelem"><a class="el" href="../../dir_c8ef7bdfc8622ceb56fdbfff8f44a6b4.html">lpcxpresso</a></li><li class="navelem"><a class="el" href="../../dir_bc2544560b94a5512f672a61310393b1.html">ucxpresso.lite</a></li><li class="navelem"><a class="el" href="../../dir_89b485e3174b4ad30c1cd4b50a79dec9.html">uCXpresso.BLE</a></li><li class="navelem"><a class="el" href="../../dir_ef35519cefd621f663612ebad34cbfc9.html">inc</a></li><li class="navelem"><a class="el" href="../../dir_23b8956a4518e3beec6402c1bb795b19.html">class</a></li><li class="navelem"><b>string.h</b></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
